import Home from '@/views/Home.vue';
export default [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/course',
    name: 'course',
    component: () => import('@/views/Course.vue')
  },
  {
    path: '/detail/:id',
    name: 'detail',
    component: () => import('@/views/Detail.vue')
  }
  ,
  {
    path: '/profile',
    name: 'profile',
    component: () => import('@/views/Profile.vue'),
    meta: { needLogin: true }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/regiester',
    name: 'regiester',
    component: () => import('@/views/Regiester.vue')
  },
  {
    path: '/cart',
    name: 'cart',
    component: () => import('@/views/Cart.vue')
  }
]